PoD memory 8/9: libxc interface
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 5 Jan 2009 10:46:37 +0000 (10:46 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 5 Jan 2009 10:46:37 +0000 (10:46 +0000)
commitf5fec95647acc61536578537a1a1f6063b99b1cb
treeaec71365725f326130aa8824b6802375f64bbd94
parent36e30441326aa951ced7b1890d654d715db3bd3a
PoD memory 8/9: libxc interface

Implement libxc interface to PoD functionality:
* Add xc_hvm_build_target_mem(), which takes both memsize and target.
Memsize is the total memory, allocated in PoD pages and reported in
the e820; target is the size of the cache.  If these are the same, the
normal funcitonality is called.  (So you can use the same function to
build always, and it will decide whether to use PoD or not.)
* Add xc_domain_memory_[gs]et_pod_target(), which sets and/or returns
information about the PoD cache and p2m entries.

Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
tools/libxc/xc_domain.c
tools/libxc/xc_hvm_build.c
tools/libxc/xc_private.c
tools/libxc/xenctrl.h
tools/libxc/xenguest.h